package com.tdam2014.grupo02.DataBase;

import android.content.Context;
import android.database.sqlite.SQLiteDatabase;

public class DB {
        
    public static String NAME_DATA_BASE = "FlickrDB";
    public static int VERSION_NUMBER = 2;
        static SQLiteDatabase db;

        public static SQLiteDatabase GetDB(Context context){
                if(db == null){
            db = new DBHelper(context, NAME_DATA_BASE, null, VERSION_NUMBER).getWritableDatabase();
        }
                return db;
        }

    public static void setBase(SQLiteDatabase db){
        DB.db = db;
    }
}
